home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************************
-
- CSA Library, Version 1.6.b
- Released: March 2nd 1995
-
- Defining the TIME class.
-
- Copyright(c) 1994,1995
- Combis
- The Netherlands
- ***********************************************************************/
-
- #include "dos.h"
- #include "time.h"
- #include "cstypes.h"
-
- class TIME
- {
- private:
-
- int hour;
- int min;
- int sec;
- int hund;
-
- public:
- TIME(void);
-
- void now(void);
-
- int hours(void ) { return hour; }
- int minutes(void ) { return min; }
- int seconds(void ) { return sec; }
- int hunderdths(void ) { return hund; }
-
- void hours(int i) { hour=i; }
- void minutes(int i) { min=i; }
- void seconds(int i) { sec=i; }
- void hunderdths(int i) { hund=i; }
-
- long cs_time(void);
- void cs_time(long t);
-
- CSCHAR *asc_time(void);
- operator char*() { return asc_time(); }
-
-
- };
-